package com.five.api.system;


import com.five.pojo.Permission;
import com.five.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user-service", contextId = "permissionServiceAPI")
public interface PermissionServiceAPI {

    @PostMapping("/queryPage")
    Result queryPage(@RequestBody Permission permission);

    @PostMapping("/queryAll")
    Result queryAll();

}
